.modal{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.modal .modal-center{
    position: absolute;
    left: 50%;
    top:50%;
    transform: translate(-50%,-50%)
}